/*
 * 作者: 黄伟
 * 时间: 2017-03-01 
 * 说明：
 * Copyright (c) 2016-2017 中研沃兮
 */
define(function(require){
	require("jquery");
	
	var appInfo = require("app/AppInfo");
	var action = require("./action/IndexHomePageFrmAction");
	var c = require('app/utils/CommonUtils');
	var RoomInfoUtils = require('app/utils/RoomInfoUtils');
	var APIUtils = require('app/utils/APIUtils');
	var win = window;
	win.header_h = c.remToPx(2.25);
	win.footer_h = 50;

	var param = api.pageParam;
	
	var uuid = param.cataloguuid;
	var catalogs = RoomInfoUtils.initRoomCatalog(true);
	
	var catalogname = "";
	for(var i=0;i< catalogs.length; i++){
		if(catalogs[i].val == uuid){
			catalogname = catalogs[i].text;
		}
	}
	
	$("#title").text(catalogname);
	$("#back").click(function(){
		api.closeWin({
        });
	});
	
	var name = "IndexCatalogFrm";
	api.openFrame({
		name: name,
		url: './' + name + '.html',
		bounces: true,
		rect: {
			x: 0,
			y: win.header_h,
			w: APIUtils.winW(),
			h: 'auto'
		},
		pageParam: {
			catalogUuid: uuid,
			showBanner: false
		},
		reload: true
	});
		
	return;
});